class CreateEnters < ActiveRecord::Migration
  def self.up
    create_table :enters do |t|
      t.integer :enterprise_id
      t.string :package_codes
      t.integer :order_item_id
      t.integer :order_made_id
      t.integer :entered_count
      t.date :entered_on
      t.string :factory_name
      t.string :warehouse_name
      t.string :feed_id
      t.text :remark
      t.integer :updated_by_user_id
      t.timestamps
    end
  end

  def self.down
    drop_table :enters
  end
end
